widget: Don't print missing allocation warning by default
authorTimm Bäder <mail@baedert.org>
Thu, 22 Sep 2016 06:58:14 +0000 (08:58 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 22 Sep 2016 07:01:06 +0000 (09:01 +0200)
This was meant to be silenced unless expicitly requested but
G_ENABLE_DEBUG is defined by default unless --disable-debug is passed to
configure, so use G_ENABLE_CONSISTENCY_CHECKS instead which is only
defined if --enable-debug is explicitly passed.

gtk/gtkwidget.c

index 3f48b14337dedc21d88af828179a09593577184c..29d8f9a6088e5baa187933a9aa3dd2bc3c0c7d6d 100644 (file)
@@ -6998,7 +6998,7 @@ gtk_widget_draw_internal (GtkWidget *widget,
       if (push_group)
         cairo_push_group (cr);
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
       if (_gtk_widget_get_alloc_needed (widget))
         g_warning ("%s %p is drawn without a current allocation. This should not happen.", G_OBJECT_TYPE_NAME (widget), widget);
 #endif